/*
 * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package top.continew.admin.cakerun.model.query;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import top.continew.starter.data.annotation.Query;
import top.continew.starter.data.enums.QueryType;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * 店铺绩效汇总表查询条件
 *
 * @author tangyu
 * @since 2025/01/27 10:00
 */
@Data
@Schema(description = "店铺绩效汇总表查询条件")
public class StorePerformanceSummaryQuery implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 账号ID列表
     */
    @Schema(description = "账号ID列表")
    @Query(type = QueryType.IN)
    private List<Integer> accountIds;

    /**
     * 门店ID列表
     */
    @Schema(description = "门店ID列表")
    @Query(type = QueryType.IN)
    private List<Integer> shopIds;

    /**
     * 城市
     */
    @Schema(description = "城市")
    @Query(type = QueryType.EQ)
    private String city;

    /**
     * 上周开始日期
     */
    @Schema(description = "上周开始日期")
    @NotNull(message = "上周开始日期不能为空")
    private LocalDate lastWeekStartDate;

    /**
     * 上周结束日期
     */
    @Schema(description = "上周结束日期")
    @NotNull(message = "上周结束日期不能为空")
    private LocalDate lastWeekEndDate;

    /**
     * 本周开始日期
     */
    @Schema(description = "本周开始日期")
    @NotNull(message = "本周开始日期不能为空")
    private LocalDate thisWeekStartDate;

    /**
     * 本周结束日期
     */
    @Schema(description = "本周结束日期")
    @NotNull(message = "本周结束日期不能为空")
    private LocalDate thisWeekEndDate;

    /**
     * 评分日期1
     */
    @Schema(description = "评分日期1")
    private LocalDate scoreDate1;

    /**
     * 评分日期2
     */
    @Schema(description = "评分日期2")
    private LocalDate scoreDate2;
}